


<html>
    <head>
        <script src="socket.io.min.js">
        </script>
        <script>
            function test(){
                var socket = io.connect('http://localhost:3010');
                socket.on('change', function (data) {
                    //get page Index from data
                    //web page changes
                    alert(data);
                });
                socket.on('message', function (data) {
                    //get page Index from data
                    //web page changes
                    alert(data);
                });
            }
        </script>
    </head>
    <body>
        <button onclick="test()">
        </button>>
    </body>
</html>

